import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';

// 引入FormsModule并在下面注册才能使用双向数据绑定
import {FormsModule} from '@angular/forms';

import { AppComponent } from './app.component';
import { Myc01Component } from './myc01/myc01.component';

@NgModule({
  declarations: [
    AppComponent,
    Myc01Component
  ],

  // 注入FormsModule模块
  imports: [
    BrowserModule,
    FormsModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }
